<template>
	<view>
		<view class="title">物流订单编号：{{LogisticCode}}</view>
		<view class="view" v-for="(item,index) in traces" :key="index">
			<view class="time">{{item.AcceptTime}}</view>
			<view class="content">{{item.AcceptStation}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				traces: [],
				LogisticCode: ''
			}
		},
		methods: {

		},
		onLoad(e) {
			this.$http({
				url: '/logistics/getInfo?orderNo=' + e.orderNo,
				// url: '/logistics/getInfo?orderNo=165681538138881548577',
				method: 'POST',
			}).then(res => {
				let fuck = JSON.parse(res.data.data)
				console.log(fuck)
				this.LogisticCode = fuck.LogisticCode
				if (fuck.Traces) {
					this.traces = fuck.Traces
				} else {
					uni.showToast({
						title: '暂无物流信息',
						icon: 'error'
					})
				}
			})
		},
	}
</script>

<style>
	@import './index.css'
</style>
